const {ipcRenderer} = require('electron');

let i = 0;
const change = () => {
    const pinnedImage = document.getElementById("pinnedImage");
    console.log(pinnedImage.src,i)
    if(i == 0){
        pinnedImage.style.transform = 'rotate3d(0,0,1,-45deg)';
        ipcRenderer.send('newWin-error-top')
        i = 1;
    }else{
        // pinnedImage.src = "images/Pinned_xie.svg"
        pinnedImage.style.transform = 'rotate3d(0,0,1,0deg)';
        ipcRenderer.send('newWin-no-error-top')
        i = 0;
    }
}

const clickClose = () => {
    ipcRenderer.send('new-win-error-close');
}